package com.hands.sample.webServlet;

import com.amazon.ask.Skill;
import com.amazon.ask.Skills;
import com.amazon.ask.servlet.SkillServlet;
import com.hands.sample.handlers.ChatIntentHandler;
import com.hands.sample.handlers.CommonHandler;


import javax.servlet.annotation.WebServlet;

@WebServlet("/v1/voice")
public class VoiceSkillServlet extends SkillServlet {
    public VoiceSkillServlet(Skill skill) {
        super(skill);
    }

    private static Skill getSkill() {
        return Skills.standard()
                .addRequestHandlers(
                        new CommonHandler(),
                        new ChatIntentHandler()
                )
                .withSkillId("2df5d999a1f405aa519ac1d366401ab4")
                .build();
    }

}
